<?php $this->headScript()->appendFile(_STATIC_HTTP . '/jquery/slide.js');?>
<?php $this->headScript()->captureStart();?>
$(window).load(function(){
	$('#indexSlide').slide({imageMargin: 16});
});
<?php $this->headScript()->captureEnd();?>
<div class="slideBox">
	<div class="slide o8">
		<div class="slideContainer" id="indexSlide">
			<ul>
				<?php foreach((array) $this->cache()->index()->getRecommendSpecials(array('limit' => '20', 'name' => 'indexslide')) AS $special) {?>
				<li>
					<div class="img">
						<a href="<?php echo $special['_url'];?>">
						<img src="<?php echo $special['_cover']['thumb'];?>" alt="<?php echo $this->escape($special['title']);?>" />
						</a>
						<em class="o6"><?php echo $this->escape($special['title']);?> <span class="number red"><strong class="yellow"><?php echo $special['ptotal'];?></strong> photo(s)</span></em>
					</div>
				</li>
				<?php } ?>
			</ul>
		</div>
		<a href="#left" class="arrow l o6 leftButton">Left</a>
		<a href="#right" class="arrow r o6 rightButton">Right</a>
		<div class="clear"></div>
	</div>
</div>
<div class="clear"></div>
	